class Person{
  name:string
  age:number

  constructor(name:string,age:number){
    this.name = name
    this.age = age
  }
  eatting(){
    console.log(this.name+'eatting');
    
  }
}

const p = new Person('pcc',19)
console.log(p.name,p.age);
p.eatting()
